package com.dowsure.apisaas.enums;

/**
 * @description: 逾期状态
 * @author: Dowsure
 * @create: 2022-02-15 10:15
 **/
public enum OverdueStatusEnums {

    OVERDUE("OVERDUE", "逾期"),
    NOT_OVERDUE("NOT OVERDUE", "未逾期")
    ;

    private String value;

    private String describe;

    OverdueStatusEnums(String value, String describe){
        this.value = value;
        this.describe = describe;
    }

    public String getValue() {
        return value;
    }

    @Override
    public String toString() {
        return String.valueOf(value);
    }

    public static OverdueStatusEnums fromValue(String text) {
        for (OverdueStatusEnums b : OverdueStatusEnums.values()) {
            if (String.valueOf(b.value).equals(text)) {
                return b;
            }
        }
        return null;
    }

}
